#ifndef OBMUSHROOMEDIBLE_H
#define OBMUSHROOMEDIBLE_H

#include "ObDynamic.h"
#include "d3dx9.h"

class ObMushroomEdible: public ObDynamic{
public:
	ObMushroomEdible(IDirect3DTexture9* mtex, CSound* sound, float px, float py, bool isLVup);
	~ObMushroomEdible();

	void collidedWith(ObObject* object, CollisionRS rs);
	void update(float dt);
	void render(ID3DXSprite* mSprite);
	void clear();

	bool IsLVup;
private:
	float count;
	float delaycount;

	IDirect3DTexture9*	mTex;
	CSound* ssound;

	float topCount;
	float flyCount;
};

#endif
